package forms;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class ApplicantForm extends ActionForm {

	private static final long serialVersionUID = 1L;

	protected String firstName = null;
	protected String middleInit = null;
	protected String lastName = null;
	protected String residency = null;
	protected String street = null;
	protected String city = null;
	protected String state = null;
	protected String zipCode = null;
	protected String countryCode = null;
	protected String areaCode = null;
	protected String telephone = null;
	protected String citizenship = null;
	protected String residence = null;
	protected int specID = 0;
	protected int status = 0;

	public ArrayList<DegreeForm> degrees = null;

	public ArrayList<DegreeForm> getDegrees() {
		return degrees;
	}

	public void setDegrees(DegreeForm degree) {
		this.degrees.add(degree);
	}

	public void clearDegrees() {
		if (degrees != null)
			degrees.clear();
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getMiddleInit() {
		return middleInit;
	}

	public void setMiddleInit(String middleInit) {
		this.middleInit = middleInit;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getResidency() {
		return residency;
	}

	public void setResidency(String residency) {
		this.residency = residency;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getCountryCode() {
		return countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getCitizenship() {
		return citizenship;
	}

	public void setCitizenship(String citizenship) {
		this.citizenship = citizenship;
	}

	public String getResidence() {
		return residence;
	}

	public void setResidence(String residence) {
		this.residence = residence;
	}

	public int getSpecID() {
		return specID;
	}

	public void setSpecID(int specID) {
		this.specID = specID;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public void reset(ActionMapping mapping, HttpServletRequest request) {
		setFirstName(null);
		setMiddleInit(null);
		setLastName(null);
		setResidency(null);
		setStreet(null);
		setCity(null);
		setState(null);
		setZipCode(null);
		setCountryCode(null);
		setAreaCode(null);
		setTelephone(null);
		setCitizenship(null);
		setResidence(null);
		setSpecID(0);
		setStatus(0);
		clearDegrees();
	}

}
